function nextYearTime(e) {
    var t = (new Date).getFullYear() + 1;
    $(e).text(t)
}
function yearTime(e) {
    var t = (new Date).getFullYear();
    $(e).text(t)
}
function lastYearTime(e) {
    var t = (new Date).getFullYear() - 1;
    $(e).html(t + "")
}
function NextMonTime(e, t) {
    var n = new Date;
    n.setDate(n.getDate() + 1);
    var a = n.getMonth() + 1 + t;
    a > 12 && (a = t),
    $(e).text(a)
}
function monTime(e) {
    var t = new Date;
    t.setDate(t.getDate() + 1);
    var n = t.getMonth() + 1;
    $(e).html(n+"<span>月</span>")
}
function addTime(e, t, n) {
    var a = new Date,
    i = a.getMonth() + 1,
    o = a.getDate() + n,
    c = new Date(a.getFullYear(), a.getMonth() + 1, 0);
    o > (c = c.getDate()) && (o -= c, (i += 1) > 12 && (i -= 12)),
    $(e).text(i),
    $(t).text(o)
}
function prevDay(e, t) {
    var n = new Date;
    n.setDate(n.getDate() + t);
    var a = n.getDate();
    $(e).text(a)
}
function day_after_tomorrow(e) {
    var t = new Date;
    t.setDate(t.getDate() + 2);
    var n = t.getDate();
    $(e).text(n)
}
function dayTime(e) {
    var t = new Date;
    t.setDate(t.getDate() + 1);
    var n = t.getDate();
    $(e).html(n+'<span>日</span>')
}
function toDay(e) {
    var t = new Date;
    t.setDate(t.getDate());
    var n = t.getDate();
    $(e).text(n)
}
function countDown() {
    var e = new Date("2049/01/01 00:00:00"),
    t = new Date,
    n = e.getTime() - t.getTime(),
    a = 0,
    i = 0,
    o = 0;
    n >= 0 && (a = Math.floor(n / 1e3 / 60 / 60 % 24), i = Math.floor(n / 1e3 / 60 % 60), o = Math.floor(n / 1e3 % 60)),
    a < 10 && (a = "0" + a),
    i < 10 && (i = "0" + i),
    o < 10 && (o = "0" + o),
    document.getElementById("t_h").innerHTML = a + "",
    document.getElementById("t_m").innerHTML = i + "",
    document.getElementById("t_s").innerHTML = o + ""
}
function change() {
    var e = document.querySelector(".inline-l"),
    t = document.querySelector(".inline-r"),
    n = document.querySelector(".inline-l-fa"),
    a = document.querySelector(".inline-l-st");
    t.onclick = function() {
        t.classList.add("act"),
        e.classList.remove("act"),
        n.style.display = "none",
        a.style.display = "block"
    },
    e.onclick = function() {
        e.classList.add("act"),
        t.classList.remove("act"),
        n.style.display = "block",
        a.style.display = "none"
    }
}
function change_btn(e, t, n, a) {
    var i = document.querySelector(e),
    o = document.querySelector(t),
    c = document.querySelector(n),
    s = document.querySelector(a);
    o.onclick = function() {
        o.classList.add("act"),
        i.classList.remove("act"),
        c.style.display = "none",
        s.style.display = "block"
    },
    i.onclick = function() {
        i.classList.add("act"),
        o.classList.remove("act"),
        c.style.display = "block",
        s.style.display = "none"
    }
}
function hover(e) {
    $(e).click(function() {
        $(this).addClass("nav-act").siblings().removeClass("nav-act")
    })
}
function leYu() {
    $(".big-mask").animate({
        display: "none"
    },
    5e3,
    function() {
        $(".big-mask").fadeIn()
    }),
    $(".mask-close").click(function(e) {
        $(".big-mask").fadeOut(function() {
            $(".big-mask").animate({
                display: "none"
            },
            25e3,
            function() {
                $(".big-mask").fadeIn()
            })
        })
    })
}
function backTop(e) {
    e.click(function() {
        $("body,html").animate({
            scrollTop: 0
        },
        500)
    })
}
function jump_anchor(e, t, n) {
    var a = $(n).height();
    $(e).click(function() {
        return $("html, body").animate({
            scrollTop: $(t).offset().top - a + "px"
        },
        {
            duration: 500,
            easing: "swing"
        }),
        !1
    })
}
function layerPub(e, t, n) {
    setTimeout(function() {
        $(e).fadeIn(450)
    },
    t),
    $(n).click(function() {
        $(e).fadeOut(450)
    })
}
function formLayer(e, t) {
    $(e).fadeIn(400),
    $(t).click(function() {
        $(e).fadeOut(400)
    })
}
function colorFun(e, t, n) {
    var a = 0;
    setInterval(function() {
        a % 2 == 0 ? $(e).addClass(t) : $(e).removeClass(t),
        a++
    },
    n)
}
function selectFun(e, t, n) {
    $(e).change(function() {
        $(this).val() == $(this).find("option:first").val() ? $(this).css("color", t) : $(this).css("color", n)
    })
}
function urlSaveVal(e, t) {
    var n = window.location.href.split("?")[1];
    n = void 0 == n ? "": "?" + n,
    $(e).attr("href", t + n)
}
function startmarquee(e, t, n, a) {
    function i() {
        c = setInterval(o, t),
        s || (l.scrollTop += 1)
    }
    function o() {
        l.scrollTop % e != 0 ? (l.scrollTop += 1, l.scrollTop >= l.scrollHeight / 2 && (l.scrollTop = 0)) : (clearInterval(c), setTimeout(i, n))
    }
    var c, s = !1,
    l = document.getElementById("marqueebox" + a);
    l.innerHTML += l.innerHTML,
    l.onmouseover = function() {
        s = !0
    },
    l.onmouseout = function() {
        s = !1
    },
    l.scrollTop = 0,
    setTimeout(i, n)
}
function tab_height(e, t, n, a) {
    $(e).click(function() {
        var e = $(this).css("height"),
        i = parseInt(e),
        o = $(this).index(),
        c = parseInt(t);
        $(this).animate({
            marginTop: i - c + "px",
            height: c + "px",
            lineHeight: c + "px"
        },
        200).css({
            backgroundColor: "#fff",
            color: "#333"
        }).siblings().animate({
            marginTop: "0px",
            height: i + "px",
            lineHeight: i + "px",
            backgroundColor: "#FCA659",
            color: "#fff"
        },
        200).css({
            backgroundColor: a,
            color: "#fff"
        }),
        $(n).eq(o).css("display", "block").siblings(".kc-main").css("display", "none")
    })
}
function tab(e, t, n, a) {
    $(e).click(function() {
        var e = $(this).index();
        $(this).addClass(n).siblings().removeClass(n),
        $(t).eq(e).removeClass(a).siblings().addClass(a)
    })
}
var hq = {
    GetAfterDate: function() {
        var e = new Date;
        e.setTime(e.getTime() + 864e5);
        var t = e.getMonth() + 1,
        n = e.getDate();
        if (t <= 9) $("#timeNum .num:eq(0)").text(0),
        $("#timeNum .num:eq(1)").text(t);
        else {
            var a = t.toString().split("");
            $("#timeNum .num:eq(0)").text(a[0]),
            $("#timeNum .num:eq(1)").text(a[1])
        }
        if (n <= 9) $("#timeNum .num:eq(2)").text(0),
        $("#timeNum .num:eq(3)").text(n);
        else {
            var i = n.toString().split("");
            $("#timeNum .num:eq(2)").text(i[0]),
            $("#timeNum .num:eq(3)").text(i[1])
        }
    },
    getQuestionsItem: function(e) {
        $(e).addClass("active").siblings().removeClass("active")
    },
    tipsHide: function(e) {
        $(".J-error").hide();
        var t = e;
        setTimeout(function() {
            t.scrollIntoView()
        },
        200)
    }
};


monTime("#month"),
dayTime("#day"),
hq.GetAfterDate(),

$(function() {
  $("img.lazy").lazyload({
      effect: "fadeIn"
  }),
  $(".pub-lazy.lazy").lazyload({
      effect: "fadeIn"
  }),
  $(".J-fixed-close").click(function(t) {
      $(this).parent(".J-fixed").addClass("active")
  }),
  $(".J-nav-wrap").hover(function() {
      $(this).find(".J-nav-siblings").slideDown()
  },
  function() {
      $(this).find(".J-nav-siblings").slideUp()
  }),
  $(".J-big-wrap").hover(function() {
      $(this).find(".J-hide-box").animate({
          top: "87px"
      },
      300),
      $(this).find(".J-txt-box").addClass("txt-box-act")
  },
  function() {
      $(this).find(".J-hide-box").animate({
          top: "292px"
      },
      300),
      $(this).find(".J-txt-box").removeClass("txt-box-act")
  }),
  setTimeout(function() {
      $(".J-right-bottom-wrap").animate({
          bottom: "0px"
      },
      1200)
  },
  1500),
  $(".J-right-close").click(function() {
      $(this).parent(".J-right-bottom-wrap").animate({
          bottom: "-198px"
      },
      1200)
  }),
  $(".J-school-box").hover(function() {
      $(this).find(".J-hover-bg").addClass("hover-act")
  },
  function() {
      $(this).find(".J-hover-bg").removeClass("hover-act")
  })
});

$('.list-icon').click(function() {
 $('.nav-wrap>nav').slideToggle('slow');
});